import com.alibaba.druid.pool.DruidDataSource;
import org.junit.Test;

public class students {
    @Test
    public void test() {
        DruidDataSource druidDataSource = new DruidDataSource();
        druidDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://localhost:3306/user");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("123456");
        System.out.println(druidDataSource);
    }
}
